package com.overlord.im.server.message.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.overlord.im.server.message.entity.enums.MessageType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * @author wuwei
 * @className ServerMessageEntity
 * @description
 * @date 2020-05-31 00:54
 **/
@TableName("SERVER_MESSAGE")
@Data
@SuperBuilder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
public class ServerMessageEntity extends BaseEntity {
    private static final long serialVersionUID = -4863564151519060796L;

    private Long clientMessageId;

    private Long sequenceId;

    private Long msgFrom;

    private Long msgTo;

    private MessageType msgType;

    private String content;

    private LocalDateTime sendTime;

}
